import request from '../utils/request'

// 根据Id获取当前用户的购物车
export function selectshoppingcart(id) {
    return request.get(`/personaldetails/get_user_shopping/${id}`)
}

// 根据id在购物车中删除某个商品
export function deletecommodity(id) {
    return request.post(`/personaldetails/del_shopping_cart/${id}`)
}

// 根据购物车id查询结算的商品
export function selectpaycommodity(ShoppingCartId) {
    return request.post(`/PersonalDetails/Shopping_cartId`,{ShoppingCartId})
}



